package cn.supermaster.management.web.rest.system;

import cn.supermaster.management.common.response.WebResponse;
import cn.supermaster.management.web.service.system.ISIndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * All rights Reserved, Designed By www.super-bytecode.com
 *
 * @ProjectName: supermaster-management
 * @Package: cn.supermaster.management.web.rest.system
 * @ClassName: SystemIndexRestController
 * @Description: []
 * <p> </p>
 * @Author: [Lance Ting]
 * @Date: 2021/1/11 2:37
 * @Version: V1.0
 * @Copyright: 2021 www.super-bytecode.comn Inc. All rights reserved.
 * TODO: 注意,本文件Lance Ting所作,如果转载或使用请标明具体出处!
 **/
@RestController
@RequestMapping("/")
public class SystemIndexRestController {

    @Autowired
    ISIndexService indexService;

    // 解锁屏幕
    @PostMapping("/unlockscreen")
    public WebResponse doUnlockScreen(String password) {
        return indexService.doUnlockScreen(password);
    }
}